package edu.whut.mall.pojo.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
/**
 * Author: smq
 * Unit: D9lab
 * Date: 2021-06-07 16:15
 */

@Data
@AllArgsConstructor
@Builder
public class Swagger implements Serializable {
    private static final long serialVersionUID = 13;

    @TableId(type = IdType.AUTO)
    private Integer id;
    private String ip;
    private Date createTime;
    private Date updateTime;
    private Integer num;

    public Swagger() {
        this.createTime = new Date();
    }

    public Swagger(String ip, Date createTime, Date updateTime) {
        this.ip = ip;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.num = 1;
    }
}
